package baseObjectDecorator;
import baseObject.IBall;
import baseObject.IRectObj;
import baseObject.RectObj;

public abstract class RectObjDecorator implements IRectObj{
	private RectObj delegate;
	
	public RectObjDecorator(RectObj delegate){
		this.delegate = delegate;
	}
	
	public boolean isAffectedBy(IRectObj iRectObj) {
		return this.delegate.isAffectedBy(iRectObj);
	}

	public eHitType getHitState(IBall ball) {
		return this.delegate.getHitState(ball);
	}

	public int getX() {
		return this.delegate.getX();
	}

	public int getY() {
		return this.delegate.getY();
	}
	
	public int getWidth() {
		return this.delegate.getWidth();
	}

	public int getHeight() {
		return this.delegate.getHeight();
	}
	
	public void setCoord(int x, int y) {
		this.delegate.setCoord(x, y);
	}
}
